package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.system.domain.VariableAssociation;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * 变量视图对象 variable_association
 *
 * @author Lion Li
 * @date 2024-10-21
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = VariableAssociation.class)
public class VariableAssociationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 变量code值
     */
    @ExcelProperty(value = "变量code值")
    private String code;

    /**
     * 变量名称
     */
    @ExcelProperty(value = "变量名称")
    private String name;

    /**
     * 变量别名
     */
    @ExcelProperty(value = "变量别名")
    private String alias;

    /**
     * 分组id
     */
    private Long groupId;

    @ExcelProperty(value = "分组名称")
    private String groupName;

    private String tunnelName;

    /**
     * 值
     */
    @ExcelProperty(value = "值")
    private BigDecimal value;

    /**
     * 变量类型1 01类型2 03类型
     */
    @ExcelProperty(value = "变量类型1 01类型2 03类型")
    private Long variableType;

    /**
     * 标识符 代表这个值是放大还是缩小  1缩小2放大
     */
    @ExcelProperty(value = "标识符 代表这个值是放大还是缩小  1缩小2放大")
    private Long identifier;

    /**
     * 倍数
     */
    @ExcelProperty(value = "倍数")
    private Long multiple;

    /**
     * 描述
     */
    @ExcelProperty(value = "描述")
    private String description;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sortNum;
    @ExcelProperty(value = "单位")
    private String unity;

    private Date updateTime;

    private int source;

    private String pileNumber;

    private Date lastPing;

    private String valueDesc;
    private String valueDescJson;

    private List<VariableAssociationValueDescVo> valueText;


}
